package com.caiheng.api.entity.setmeal;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 套餐赠送消费券的记录对象 set_meal_info_given_record
 *
 * @author ruoyi
 * @date 2022-06-07
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("set_meal_info_given_record")
public class SetMealInfoGivenRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 套餐id
     */
    private Integer mealId;

    /**
     * 套餐规格id
     */
    private Integer mealInfoId;

    /**
     * 套餐的赠送消费券id
     */
    private Integer mealGivenId;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 赠送金额
     */
    private BigDecimal givenMoney;

    /**
     * 消费券id
     */
    private Integer voucherId;

    /**
     * 消费券名称
     */
    private String voucherName;

    /**
     * 消费券类型
     */
    private Integer voucherType;

}
